<?php /*a:2:{s:55:"/www/wwwroot/llz/application/admin/view/user/index.html";i:1716876684;s:58:"/www/wwwroot/llz/application/admin/view/public/father.html";i:1708691164;}*/ ?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/layuiadmin/style/admin.css" media="all">
    <style>*{font-weight: 300;}</style>
    
</head>
<body>

<div style="margin: 15px;">
    
<div class="layui-card">
    <div class="layui-card-header">用户列表</div>
    <div class="layui-card-body">

        <div class="layui-btn-container">
            <button class="layui-btn" onclick="openUrl('添加', 'create', 480,420);return false;"><i class="layui-icon layui-icon-addition"></i>添加用户</button>
        </div>

        <table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>

        <script type="text/html" id="status">
            <input type="checkbox" name="status" lay-skin="switch" lay-text="已启用|已禁用" data-href="<?php echo url('status'); ?>?t=users&id={{ d.id }}" lay-filter="switchStatus" value="{{ d.status }}" {{ d.status==1 ? 'checked' : '' }}>
        </script>

        <script type="text/html" id="barDemo">
            <div class="layui-btn-group">
                <a class="layui-btn layui-btn-sm" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>修改</a>
                <a class="layui-btn layui-btn-danger layui-btn-sm" lay-event="del" data-table="users"><i class="layui-icon layui-icon-delete"></i>删除</a>
	            <a class="layui-btn layui-btn-sm" lay-event="xufei"><i class="layui-icon layui-icon-rmb"></i>续费</a>
            </div>
        </script>

        <script type="text/html" id="admin">
        {{ d.admin == 1 ? '管理员' : '' }}
        {{ d.admin == 2 ? 'VIP用户' : '' }}
        {{ d.admin == 3 ? '代理' : '' }}
        {{ d.admin == 4 ? '视频管理' : '' }}
        </script>

    </div>
</div>

</div>

<script src="/static/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/layuiadmin/layui/layui.js" type="text/javascript"></script>
<script src="/static/js/public.js" type="text/javascript"></script>

<script type="text/javascript">
    layui.use(['table', 'form'], function() {
        let $ = layui.jquery, table = layui.table, form = layui.form;

        table.render({
            elem: '#dataTable',
            url: "<?php echo url(); ?>?so=<?php echo trim(input('param.so')); ?>",
            title: '数据表',
            cellMinWidth: 200,
            limit: 20,
            size: 'lg',
            cols: [[
                {field: 'left',		title:'操作',	width:220,	align:'center',	toolbar:'#barDemo'},
                {field: 'status',	title:'状态',	width:110,	align:'center',	sort:true,	templet:'#status'},
                {field: 'username',	title:'用户名',	minWidth:200,	align:'center',	sort:true},
	            {field: 'admin',	title:'权限',	width:100,	align:'center',	sort:true,		templet:'#admin'},
	            {field: 'end_time',	title:'到期时间',		width:170,templet: "<div>{{layui.util.toDateString(d.end_time*1000, 'yyyy-MM-dd HH:mm:ss')}}</div>"},
            ]],
            page: true
        });

    });

</script>

</body>
</html>